package org.example.discount;

public class PercentageDiscountStrategy implements DiscountStrategy {
    private final double percentage;
    
    public PercentageDiscountStrategy(double percentage) {
        this.percentage = percentage;
    }
  
    @Override
    public double applyDiscount(double originalPrice) {
        return originalPrice * percentage;
    }
}
